package elements;

import utils.ImageUtil;


public class Straight extends Element {
	public Straight(int x,int y, int color,int direction,int actType){
		super(x, y, color, direction,actType);
		this.type =Element.STRAIGHT;
		image = ImageUtil.getImage("straight");
	}
	
	public boolean canGo(int inDirection){
		if(inDirection==direction||Math.abs(inDirection-direction)==4)return true;
		return false;
	}
}
